/* 
 *	Copyright (C) 2009-2010 miaohua
 *	http://code.google.com/p/lrcshower/
 *
 *  This Program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2, or (at your option)
 *  any later version.
 *   
 *  This Program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 *  GNU General Public License for more details.
 *   
 *  You should have received a copy of the GNU General Public License
 *  along with GNU Make; see the file COPYING.  If not, write to
 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
 *  http://www.gnu.org/copyleft/gpl.html
 *
 */

#pragma once

///Music search engine url
#define Baidu_Music_Url        _T("http://mp3.baidu.com/m?f=ms&rn=&tn=baidump3&ct=134217728&word=%s&lm=-1&pn=%d")
#define Baidu_Lrc_Url          _T("http://mp3.baidu.com/m?f=ms&tn=baidump3lyric&ct=150994944&lf=2&rn=10&word=%s&lm=-1&pn=%d")
#define Sogou_Music_Url        _T("http://mp3.sogou.com/music.so?as=false&query=%s&page=%d&w=02009900&_asf=mp3.sogou.com&_ast=1223280064")
#define Sogou_Lrc_Url          _T("http://mp3.sogou.com/lyric.so?query=%s&class=3&st=&ac=&pf=&_asf=&_ast=&p=&page=%d")
#define Sogou_Music_Main       _T("http://mp3.sogou.com/")
///Application's tmp directory name
#define HTML_TMP_DIR           _T("tmp")
///Application's lrc saving directory name
#define LRC_DIR                _T("Lyrics")
///Application's playlist directory name
#define PLAYLIST_DIR           _T("PlayList")
///Applications' search plug in directory name
#define Search_Engine_Dir      _T("SearchPlugin\\*.dll")
///Music web page parse result parameter
#define SONGLIST_EXT           _T("SongList")
#define SONGLRC_EXT            _T("SongLrc")
#define DOWNLOAD_URL_EXT       _T("SongDownloadUrl")
#define RESULT_EXT             _T("Result.XML")

///Const parameter define
#define MAX_BUF_LEN            1024

///Attribute name & nubmer 
const int  AttributeNum = 5;
static const char * AttributeName[AttributeNum]=
{"songname", "singer", "album", "size", "format"};